package com.wang.mapper;

import com.wang.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    User selectUserByUserName(String userName);

    User selectUserByUserPhone(String userPhone);

    User selectUserByWeichatId(String userWeichatId);

    void updateLoginTime(Integer userId, String userLastLogin);

    User selectUserByUserId(Integer userId);

    void addUser(User user);

    void editUserPhone(Integer userId, String userPhone);


    void perfectionUserInfo(Integer userId, String userCompany, String userEmail, String userNearName);

    void editUserInfo(User user);



    List<User> selectUserByExport();

    void bindUserWeixinId(User user);

    User selectUserByUserNameAndMd5UserPass(String userName, String md5UserPass);

    void uEditUserNearName(Integer userId, String userNearName);

    void uEditUserCompany(Integer userId, String userCompany);

    List<Integer> selectAllUserId();

    void editMyEmail(Integer userId, String userEmail);

    void updateUserPassByUserPhone(String userPhone, String newUserPass);

    User selectUserByWeichatIdAndUserName(String userName, String userWeichatId);

    List<User> selectByDevId(Integer devId);
}
